<?php 
/* SVN FILE: $Id$ */
/* BookingGood Test cases generated on: 2009-05-19 23:05:33 : 1242791133*/
App::import('Model', 'BookingGood');

class BookingGoodTestCase extends CakeTestCase {
	var $BookingGood = null;
	var $fixtures = array('app.booking_good', 'app.user', 'app.good');

	function startTest() {
		$this->BookingGood =& ClassRegistry::init('BookingGood');
	}

	function testBookingGoodInstance() {
		$this->assertTrue(is_a($this->BookingGood, 'BookingGood'));
	}

	function testBookingGoodFind() {
		$this->BookingGood->recursive = -1;
		$results = $this->BookingGood->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('BookingGood' => array(
			'id'  => 1,
			'email'  => 'Lorem ipsum dolor sit amet',
			'link_man'  => 'Lorem ipsum dolor sit amet',
			'tel'  => 'Lorem ipsum dolor sit amet',
			'goods_desc'  => 'Lorem ipsum dolor sit amet',
			'goods_number'  => 1,
			'booking_time'  => '2009-05-19 23:45:33',
			'is_dispose'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'dispose_user'  => 'Lorem ipsum dolor sit amet',
			'dispose_time'  => '2009-05-19 23:45:33',
			'dispose_note'  => 'Lorem ipsum dolor sit amet',
			'user_id'  => 1,
			'good_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>